local status, db = pcall(require, "dashboard")
if not status then
  vim.notify("没有找到 dashboard")
  return
end

db.setup({
      theme = 'doom',
      config = {
        header = {

  [[]],
  [[ ███╗   ██╗███████╗ ██████╗ ██╗   ██╗██╗███╗   ███╗]],
  [[ ████╗  ██║██╔════╝██╔═══██╗██║   ██║██║████╗ ████║]],
  [[ ██╔██╗ ██║█████╗  ██║   ██║██║   ██║██║██╔████╔██║]],
  [[ ██║╚██╗██║██╔══╝  ██║   ██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
  [[ ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║]],
  [[ ╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═══╝  ╚═╝╚═╝     ╚═╝]],
  [[                                                   ]],
  [[                [ version : 0.9.1 ]                ]],
  [[                                                   ]],
        },
        center = {
          {
            icon = ' ',
            icon_hl = 'Title',
            desc = 'Projects           ',
            desc_hl = 'String',
            action = 'Telescope projects'
          },
          {
            icon = ' ',
            desc = 'Recently files',
            desc_hl = 'String',
            action = 'Telescope oldfiles'
          },
          {
            icon = " ",
            desc = 'Edit Projects',
            desc_hl = 'String',
            action = 'edit ~/.local/share/nvim/project_nvim/project_history'
          },
        },
        footer = {
        }
     }
 })


db.custom_center = {
   {
    icon = "  ",
    desc = "Projects                            ",
    action = "Telescope projects",
   },
   {
    icon = "  ",
    desc = "Recently files                      ",
    action = "Telescope oldfiles",
   },
   {
    icon = "  ",
    desc = "Edit Projects                       ",
    action = "edit ~/.local/share/nvim/project_nvim/project_history",
   },
  -- {
  --   icon = "  ",
  --   desc = "Edit .bashrc                        ",
  --   action = "edit ~/.bashrc",
  -- },
  -- {
  --   icon = "  ",
  --   desc = "Change colorscheme                  ",
  --   action = "ChangeColorScheme",
  -- },
  -- {
  --   icon = "  ",
  --   desc = "Edit init.lua                       ",
  --   action = "edit ~/.config/nvim/init.lua",
  -- },
  -- {
  --   icon = "  ",
  --   desc = "Find file                           ",
  --   action = "Telescope find_files",
  -- },
  -- {
  --   icon = "  ",
  --   desc = "Find text                           ",
  --   action = "Telescopecope live_grep",
  -- },
}

